<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: 1244762145
  Date: 2021/10/7
  Time: 15:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--数据标签property--%>
<s:property value="loginUser.name"/>
<%--控制标签 if-else --%>
<s:if test="%{loginUser.sex==\"0\"}">
    <s:text name="先生,"/>
</s:if>
<s:else>
    <s:text name="女士,"/>

</s:else>
您注册成功了！
<%--数据标签set--%>
<s:set name="user" value="loginUser" scope="session"/>
<s:a href="index.jsp">去进行登录</s:a>
</body>
</html>
